﻿using Groep2TINGHService.Get_Set_Classes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace Groep2TINGHService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IService1
    {
        [OperationContract]
        List<Company> GetAllCompanies();

        [OperationContract]
        List<Role> Get_AllRoles();

        [OperationContract]
        int Insert_Company(Company company);

        [OperationContract]
        Company Get_CompanyByName(string name);

        [OperationContract]
        int Modify_Company(Company company);

        [OperationContract]
        int DeleteCompany(Company company);

        [OperationContract]
        List<ContractFormula> GetAllContractFormula();

        [OperationContract]
        ContractFormula Get_ContractDurationByDescription(ContractFormula Description);

        [OperationContract]
        int InsertContract(Contract contract, ContractFormula formula, Company company);
    }
}

